/* 加载高校数据 */

let schoolSelector = null;
let gradeSelector = null;

(async() => {
    const res = await fetch("statics/json/schools.json");
    const data = await res.json();
    schoolSelector = new Selector("school-select", data, "请选择学校");
    gradeSelector = new Selector("grade-select", {
        "本科": ["本科一年级", "本科二年级", "本科三年级", "本科四年级", "本科五年级", "其他"],
        "硕士": ["硕士一年级", "硕士二年级", "硕士三年级", "其他"],
        "博士": ["博士一年级", "博士二年级", "博士三年级", "其他"],
        "其他": ["其他"]
    }, "请选择年级", "small");
})();